﻿using H.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace H.Eyes.Remotings
{
    public class SeeRef : MarshalByRefObject, ISee
    {
        private readonly ISee _See;

        public SeeRef(ISee see)
        {
            _See = see;
        }

        ///<inheritdoc/>
        public IEnumerable<string> ObjNames => _See.ObjNames;

        ///<inheritdoc/>
        public void Dispose()
        {
            _See.Dispose();
        }

        ///<inheritdoc/>
        public int See(Rect matchRect, out Pos matchPoint)
        {
            return _See.See(matchRect, out matchPoint);
        }

        ///<inheritdoc/>
        public bool See(Rect matchRect)
        {
            return _See.See(matchRect);
        }

        ///<inheritdoc/>
        public int[] See(Rect matchRect, out Pos[] matchPoints)
        {
            return _See.See(matchRect, out matchPoints);
        }
    }
}
